package com.example.shop_2304.pay

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.example.base.mvvm.BaseViewActivity
import com.example.shop_2304.R
import com.example.shop_2304.databinding.ActivityResultBinding

@Route(path = "/app/ResultActivity")
class ResultActivity : BaseViewActivity<ActivityResultBinding>() {
    @Autowired
    @JvmField
    var result = ""
    override fun initView() {
        ARouter.getInstance().inject(this)
        binding.tvResult.text = result//显示支付结果

        binding.tvGoCar.setOnClickListener {
            ARouter.getInstance().build("/app/MainActivity").withInt("index",1).navigation()
        }

        binding.tvGoMine.setOnClickListener {
            ARouter.getInstance().build("/app/MainActivity").withInt("index",2).navigation()
        }
    }

    override fun initData() {

    }

    override fun getLayout(): Int = R.layout.activity_result

}